#ifndef ENEMY_H
#define ENEMY_H
#include<QTimer>
#include "specialteam.h"
#include<gamedefine.h>
#include<QObject>
class enemy : public QObject,public Specialteam
{
    Q_OBJECT
    QTimer*attacktimer=new QTimer(this);
    qreal x;qreal y;
    headpoint enemypoint=right;
public:
    enemy();
    enemy(qreal x,qreal y,bool flipHorizontal);
    ~enemy();
    enemy(qreal x,qreal y,bool flipHorizontal,QGraphicsScene*scene);
public slots:
    void attack();
//public slots:void  attack();
};

#endif // ENEMY_H
